{__NOLAYOUT__}


<title>出错了</title>

<div class="layui-fluid">
    <div class="layadmin-tips">

        <?php switch ($code) {?>
        <?php case 1:?>

        <i class="layui-icon" face>&#xe664;</i>

        <div class="layui-text" style="font-size: 20px;">
            <?php echo(strip_tags($msg));?>
        </div>

        <?php break;?>
        <?php case 0:?>

        <i class="layui-icon" face>&#xe664;</i>

        <div class="layui-text" style="font-size: 20px;">
            <?php echo(strip_tags($msg));?>
        </div>

        <?php break;?>
        <?php } ?>

        <div class="layui-text"  class="jump" style="font-size: 20px;">
            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
        </div>


    </div>
</div>

<script>

    layui.define(['form', 'upload'], function(exports){
        var $ = layui.$;
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                clearInterval(interval);
                $(".layui-tab-title").find("li.layui-this>i").click();
            };
        }, 1000);
        function adminClose() {
            $(".layui-tab-title").find("li.layui-this>i").click();
        }
    });
</script>
